<script setup lang="ts">
import useScroll from "./useScroll";
interface Props {
  direction: "top" | "bottom";
  disable?: boolean;
  distance?: number;
}
withDefaults(defineProps<Props>(), {
  direction: "bottom",
  disable: false,
  distance: 0
});
useScroll();
</script>

<template>
  <view ref="container" class="container">
    <slot />
  </view>
</template>

<style lang="scss" scoped>
.container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
}
</style>
